//
//  HGPageContenView.h
//  PageController
//
//  Created by yu on 2018/4/6.
//  Copyright © 2018年 ma c. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol HGPageContenViewDelegate <NSObject>
- (void)pageContenViewScrollProgress:(CGFloat)progress sourceIndex:(NSInteger)sourceIndex targetIndex:(NSInteger)targetIndex;
@end
@interface HGPageContenView : UIView
@property (nonatomic, weak)id<HGPageContenViewDelegate> delegate;


- (instancetype)initWithFrame:(CGRect)frame childViewControllers:(NSArray *)childVcs andParentViewController:(UIViewController *)parentVc;

//滚动到当前页
- (void)pageContentViewScrollToCurrentIndex:(NSInteger)index;
@end
